package com.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.pojo.Employee;
import com.service.EmployeeService;

@RestController
public class EmployeeController {
	
	@Autowired
	private EmployeeService service;
	
	@RequestMapping("getEmp")
	public String getEmployee(){
		
		Employee employee = service.getEmployee();
		
		String emp = employee.toString();
		
		return emp;
	}
	
}
